/**
 * Created by XiaAo on 2017/3/20.
 * function :学生查询路由配置
 * author ：xiaao
 * data : 2017-3-20
 */

var ngModuleTeacher = angular.module("ngModule_teacherManager", []);

ngModuleTeacher.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {

    $urlRouterProvider.otherwise("teacherManagerStu.html");

    $stateProvider
    //老师路由
        .state('teacher', {
            url: '/teacher',
            templateUrl: '../view/uiView/leftBar/teacherLeftBar.html',
            controller:'teacherCtrl'
        })

        .state('teacher.teacherManagerStu', {
            url: '/teacherManagerStu',
            templateUrl: "../view/uiView/teacherManager/teacherManagerStu.html",
            controller: 'teacherManagerStuCtrl'
        })
        .state('teacher.teacherCheckHomework', {
            url: "/teacherCheckHomework",
            templateUrl: '../view/uiView/teacherManager/teacherCheckHomework.html',
            controller:'teacherCheckHomeworkCtrl'
        })
        .state('teacher.teacherQuery', {
            url: "/teacherQuery",
            templateUrl: '../view/uiView/teacherManager/teacherQuery.html'
        })
        .state('teacher.teacherRevStu', {
            url: "/teacherRevStu",
            templateUrl: '../view/uiView/teacherManager/teacherRevStu.html'
        })

}]);

//module名暴露给require
module.exports = ngModuleTeacher;

